package com.feiynn.study.mocktest.service;

import com.feiynn.study.mocktest.mappers.BlogMapper;
import com.feiynn.study.mocktest.model.Blog;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Dean
 */
@Service
public class BlogServiceImpl implements BlogService {
    @Resource
    private BlogMapper blogMapper;

    @Override
    public Blog getBlogById(Long id) {
        return blogMapper.selectById(id);
    }
}
